projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ed1c04
)
* test/lisp/help-fns-tests.el (help-fns-test-dangling-alias): New test.
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Thu, 12 Oct 2017 14:19:26 +0000
(10:19 -0400)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Thu, 12 Oct 2017 14:19:26 +0000
(10:19 -0400)
test/lisp/help-fns-tests.el
patch
|
blob
|
history
diff --git
a/test/lisp/help-fns-tests.el
b/test/lisp/help-fns-tests.el
index 98e6b335b903e1425608eb08f8a55020892becaf..6dc5299ef3c58e868c0ffe2b15bfbac2a15ec4a2 100644
(file)
--- a/
test/lisp/help-fns-tests.el
+++ b/
test/lisp/help-fns-tests.el
@@
-81,6
+81,11
@@
Return first line of the output of (describe-function-1 FUNC)."
(result (help-fns-tests--describe-function 'search-forward-regexp)))
(should (string-match regexp result))))
+(ert-deftest help-fns-test-dangling-alias ()
+ "Make sure we don't burp on bogus aliases."
+ (let ((f (make-symbol "bogus-alias")))
+ (define-obsolete-function-alias f 'help-fns-test--undefined-function "past")
+ (describe-symbol f)))
\f
;;; Test describe-function over functions with funny names
(defun abc\\\[universal-argument\]b\`c\'d\\e\"f (x)